import time


def test_time():
    # start = time.time()
    # time.sleep(3)
    # end = time.time()
    # print("执行时长 {}".format(end-start))
    # for i in range(49, 100):
    #     # print("<dimen name=\"+(i*3)+\">"+i+"dp</dimen>")
    #     print("<dimen name=\"px_{}_sp\">{}sp</dimen>".format(i, format(i/3, '.2f')))

    a1=0
    a2=0
    a3=0
    a4=0
    a5=0
    a6=0
    a7=0
    a8=0
    sumtt = [0]*8
    for a1 in range(1, 100):
        for a2 in range(1, 100):
            for a3 in range(1, 100):
                for a4 in range(1, 100):
                    for a5 in range(1, 100):
                        for a6 in range(1, 100):
                            for a7 in range(1, 100):
                                for a8 in range(1, 100):
                                    tr = a1+a2+a3+a4+a5+a6+a7+a8
                                    sumtt[0] = a1*5
                                    sumtt[1] = a2*5
                                    sumtt[2] = a3*5
                                    sumtt[3] = a4*5
                                    sumtt[4] = a5*10
                                    sumtt[5] = a6*15
                                    sumtt[6] = a7*20
                                    sumtt[7] = a8*32
                                    sum = min(sumtt)
                                    if sum > tr:
                                        print("=======================>出现最优解a1=%d,a2=%d,a3=%d,a4=%d,a5=%d,a6=%d,a7=%d,a8=%d,sum=%d"%(a1,a2,a3,a4,a5,a6,a7,a8,sum))


if __name__ == '__main__':
    test_time()
